﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace Utility
{
    public class IP
    {
        #region 获得当前IP
        /// <summary>
        /// 获得当前IP
        /// </summary>
        /// <returns></returns>
        public static string GetIP()
        {
            return HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString();
        }
        #endregion
    }
}
